const STORAGE_KEY = 'basket_storage_key';
function getVal() {
  const sd = localStorage.getItem(STORAGE_KEY);
  return sd ? JSON.parse(sd) : [] ;
}
function setVal(arr) {
  localStorage.setItem(STORAGE_KEY, JSON.stringify(arr));
}

export {
  getVal,
  setVal,
}
